<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        *{margin: 0;padding: 0;}
        .one{
            width: 100%;
            background-color: pink;
        }
        .one>div{
            width: 60px;
            height: 55px;
            background-color: pink;
            color: white;
            float: left;
            text-align: center;
            line-height: 55px;

        }
        div:before{display: table;
            content: "";
            clear: both;
        }
        div:after{
            display: table;
            content:"";
            clear: both;
        }
        .one>div:hover{
            background-color: deeppink;
            color: aliceblue;
        }
    </style>
</head>
<body>
<div class="one">
    <div>手机</div>
    <div>平板</div>
    <div>电脑</div>

</div>
</body>
</html>